package com.beans;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

public class Car{
	private String name;
	private int age;
	private double phone;

	public Car() {
		super();
	}

	public void init2() {
		System.out.println("Car.init2()");
	}

	public void destroy2() {
		System.out.println("Car.destroy2()");
	}

	@Override
	public String toString() {
		return "Car [name=" + name + ", age=" + age + ", phone=" + phone + "]";
	}

	public Car(String name, int age, double phone) {
		super();
		this.name = name;
		this.age = age;
		this.phone = phone;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public double getPhone() {
		return phone;
	}

	public void setPhone(double phone) {
		this.phone = phone;
	}



}
